redlib icon indicating copy to clipboard operation
redlib copied to clipboard

💡 Feature request: Built-in comment restoration/undelete

Open Silveere opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

Currently, redlib relies on an external frontend (by default, undelete.pullpush.io) for viewing deleted comments. This has some negative privacy implications if the user is trying to avoid Reddit's tracking, as Unddit (and, as far as I'm aware, every undeletion frontend) contacts the Reddit API client-side as part of the comment restoration process. It is also pretty clunky from a UX perspective, since it navigates away from redlib to an interface that is, in my personal opinion, a lot less elegant.

Describe the feature you would like to be implemented

I'd like to see server-side deleted comment restoration added to redlib. A toggle for automatic comment restoration could be added to the settings, or a button could be added to a deleted comment which reloads the thread with comment restoration enabled (I'm not sure what the best approach is here). This feature should probably be configurable server-side so server admins can completely disable it if they don't want their server contacting the pushshift/pullpush API (or is this a non-issue?).

Describe alternatives you've considered

At the very least, a warning should probably be added to the "view removed comment" link if the "Do not confirm before visiting content on Reddit" box is not checked, similar to the one when navigating to Reddit.

Additional context / screenshot

N/A

Silveere avatar May 02 '24 04:05 Silveere

For anyone who wants to work on this: The routes are https://api.pullpush.io/reddit/comment/search/?fields=author,body,created_utc,id,link_id,parent_id,retrieved_on,retrieved_utc,score,subreddit&metadata=true&size=100&sort=asc&link_id=[LINK_ID] and you manually compare to https://oauth.reddit.com/api/info?id=[COMMA_SEPARATED_LIST_OF_COMMENT_IDS]. This is mildly involved of a feature so I'll tag it hard

sigaloid avatar Jul 21 '24 18:07 sigaloid