username-is-required / reddark

reddark, but it's in realtime (a fork)
https://reddark.io/
GNU Affero General Public License v3.0
11 stars 1 forks source link

Possible enhancement - archived subreddits #141

Closed robertafreese closed 1 year ago

robertafreese commented 1 year ago

I wanted to highlight the project here https://github.com/ArthurHeitmann/reddit_site_stats https://blackout.photon-reddit.com/

to mention that perhaps as an enhancement to support all of these statuses: restricted, private, public, archived.

Some of the subs on the list in the sticky issue username-is-required/reddark-subinfo#146 are archived now and have all of the status options supported might be an enhancement to consider.

From the linked production site, image

username-is-required commented 1 year ago

if you’re referring to my fork of reddark (https://reddark.io), i’ve already built in functionality to support the archived status — it displays such subs in red as ‘mods purged’ as that seems to be the reason the subs find themselves in that status.

apologies if i’m misunderstanding what you’re referring to - let me know if so.

robertafreese commented 1 year ago

Ah, ok, I am new to this language and did not get to that part of the code yet! Yes, and I suppose to clarify, it might be simpler on you if it fits your strategy to report 'Archived' as it's just the data and perhaps easier to automate? Feel free to close this one.

username-is-required commented 1 year ago

don’t worry! i admit it can be slightly confusing as well with the way i’m dealing with things over multiple repositories.

thankfully, finding out the subs that have ‘archived’ status is fully automatable - it’s something that the reddit api tells me without having to do any manual work.

and although technically it’s not guaranteed tnat a sub with status: archived would be that way because of a purged modteam, i’m feeling fairly comfortable leaving the status text that way for the moment. the reason for this is that ‘archived’ status (to the best of my knowledge) is something that subreddit mods can’t apply to their own sub — i believe a subreddit can only be set to ‘archived’ by the admins. therefore, if a sub is detected as ‘archived’, i think it’s fair to say that the admins have done something with it.

(if i notice that a sub gets set to ‘archived’ in the future but the modteam is left intact, i’ll probably have to change the text of the status label.)


(also, i’m gonna transfer this issue to my reddark fork at username-is-required/reddark, as i believe it refers more to an enhancement to the site - let me know if you think it’s wrong there though)

username-is-required commented 1 year ago

actually i think i changed my mind a little bit, and i’ve now changed the wording from ‘mods purged’ to ‘archived’. i did this because it occurred to me that - while a sub being ‘archived’ is a pretty good sign of a purged modteam, reddit admins can purge a modteam without setting the sub to archived (as seems to have happened with r/longhair).

i therefore didn’t want any potential (false) implication that the subs displaying ‘mods purged’ are the only subs with purged mods, so i changed the status wording to ‘archived’.