mihon icon indicating copy to clipboard operation
mihon copied to clipboard

Allow extensions to read NSFW state

Open binyaminyblatt opened this issue 9 months ago • 10 comments

Describe your suggested feature

Hey I apologize if somebody has requested this before I don't know how to describe it well enough to search for it so apologies if I'm repeating something

The future request I'm looking for is to allow a third option for is NSFW which would be it might be partially NSFW but it could read the switch in the app that disables NSFW extensions and then it would if possible in the extension set all the settings for the extension to disable the NSFW parts for instance redacted source name has the ability to just disable the NSFW parts and if it could read in the settings from the app itself it could then say these settings should never be allowed to be enabled and just hide them and hard code the values

As a good example redacted source name has four categories and it would disable the NSFW categories and lock that setting as disabled so it could be used in an sfw mode now obviously this wouldn't work for every extension because some of them just don't have that capability

Basically what I'm saying that when it tries to load up the class that is the extension the app could pass a parameter that is the current value of whether or not and if NSFW is allowed on this device and then based upon that a couple of if statements should be able to decide whether or not certain things are viewable or not

Obviously this would require some restructuring of how repositories work but I don't think it should be that complicated to implement I'm not a Java developer but I work in Python and other languages and I could see this being done fairly easily

Other details

No response

Acknowledgements

  • [X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
  • [X] I have written a short but informative title.
  • [X] I have updated the app to version 0.16.5.
  • [X] I will fill out all of the requested information in this form.

binyaminyblatt avatar May 02 '24 10:05 binyaminyblatt

This is quite doable. Will keep in mind when we get around to redoing the source api

AntsyLich avatar May 02 '24 10:05 AntsyLich

Thanks 👍

I always felt bad though probably the best source (redacted source name) was out of reach because I refuse to enable nsfw sources

binyaminyblatt avatar May 02 '24 10:05 binyaminyblatt

Avoid naming sources please

MajorTanya avatar May 02 '24 10:05 MajorTanya

Avoid naming sources please

Would you like me to edit it I just left it that way so the example is easily understood

binyaminyblatt avatar May 02 '24 10:05 binyaminyblatt

Avoid naming sources please

Would you like me to edit it I just left it that way so the example is easily understood

Would be best if you did, but I understand how it is useful for the example. Just remember it for the next time you file an issue 👍

MajorTanya avatar May 02 '24 11:05 MajorTanya

Avoid naming sources please

Would you like me to edit it I just left it that way so the example is easily understood

Would be best if you did, but I understand how it is useful for the example. Just remember it for the next time you file an issue 👍

How is that if you can describe it better so that I don't need examples like that I'd be happy to rewrite it anyway that makes sense

binyaminyblatt avatar May 02 '24 11:05 binyaminyblatt

I'm just commenting because I don't want the issue to get Auto closed

binyaminyblatt avatar Aug 05 '24 15:08 binyaminyblatt

@binyaminyblatt I don't think they auto close open issues, they auto lock closed issues, cause they are closed and further discussion on them is unnecessary. But since this is open it is probably safe, until someone either fixes it or closes it, I have only seen stuff be closed by moderators so far

Norsze avatar Aug 05 '24 15:08 Norsze

We don't do auto close bullshit

AntsyLich avatar Aug 05 '24 17:08 AntsyLich

I apologize

binyaminyblatt avatar Aug 06 '24 16:08 binyaminyblatt