bugs 内の timotab によるリンク API not returning mod status?

[–]bsimpson 1ポイント2ポイント  (0子コメント)

I broke this. I'll deploy a fix for it asap.

redditdev 内の scopolamine によるリンク How to make a subreddit as default so it would show up on top bar?

[–]bsimpson 0ポイント1ポイント  (0子コメント)

The default subreddits are stored in LocalizedDefaultSubreddits https://github.com/reddit/reddit/blob/master/r2/r2/models/subreddit.py#L1594. You can update the list by going into reddit-shell and running:

from r2.models import Subreddit, LocalizedDefaultSubreddits
srs = [Subreddit._by_name(name) for name in ["name1", "name2", "name3", etc]]
LocalizedDefaultSubreddits.set_global_srs(srs)

I should figure out a way to do this as part of the install script or inject_test_data.py

help 内の djfil007 によるリンク Comments missing?

[–]bsimpson 1ポイント2ポイント  (0子コメント)

Thanks for reporting this.

Some comments and items in user listings created during a few hour window yesterday are missing. I believe this is due to a cache maintenance I performed yesterday, but am not sure yet. If you notice this continuing to happen for new comments please let me know.

bsimpson 内の bsimpson によるリンク test

[–]bsimpson[S] 0ポイント1ポイント  (0子コメント)

here's another comment!

bsimpson 内の bsimpson によるリンク test

[–]bsimpson[S] 0ポイント1ポイント  (0子コメント)

here's a new comment!

bugs 内の HelmedHorror によるリンク Clicking "Parent" on a comment within "Load more comments..." is treated like a permalink instead

[–]bsimpson 0ポイント1ポイント  (0子コメント)

Thanks for the report.

I think it's mistakenly using the same logic as a permalink (e.g. https://www.reddit.com/r/technology/comments/34ar2q/microsoft_brings_android_ios_apps_to_windows_10/cqt5o6t) where it thinks the parent comment isn't on the page so it can't use an anchor tag.

redditdev 内の DAMN_it_Gary によるリンク How does reddit pagination work? (code wise)

[–]bsimpson 0ポイント1ポイント  (0子コメント)

query is just a list of fullnames. For a subreddit or frontpage listing you can see where it comes from here https://github.com/reddit/reddit/blob/master/r2/r2/controllers/listingcontroller.py#L417

redditdev 内の philalether によるリンク Reddit clone .update config files

[–]bsimpson 0ポイント1ポイント  (0子コメント)

short_description should be in the [DEFAULT] section of *.update.

redditdev 内の philalether によるリンク Reddit clone .update config files

[–]bsimpson 0ポイント1ポイント  (0子コメント)

Did you install reddit using the install script https://github.com/reddit/reddit/blob/master/install-reddit.sh?

If so there should be a symlink run.ini pointing at development.ini. Is this the case?

bugs 内の Erulk によるリンク I keep getting an error 500 from the server whenever I try to create a new subreddit

[–]bsimpson 1ポイント2ポイント  (0子コメント)

Are you using a non-ascii character in the subreddit name?

help 内の daguru9 によるリンク External Links Changing to Self Links

[–]bsimpson 1ポイント2ポイント  (0子コメント)

When submitting you can choose either link or text, not both. Are you entering the url on the "link" tab and then entering some text in the "text" tab and then submitting?

bugs 内の justcool393 によるリンク Reddit API doesn't show any posts in an overview for some users.

[–]bsimpson 4ポイント5ポイント  (0子コメント)

Any reason you're limiting it to 2?

This is probably some weirdness due to the low limit and the listing logic that skips deleted posts or posts that aren't publicly visible.

redditdev 内の TeroTheTerror によるリンク Getting a user from their t2_ id

[–]bsimpson 0ポイント1ポイント  (0子コメント)

Sorry, there's no way to restrict the domain listing to a specific subreddit. There might be a way to do this using search.

redditdev 内の TeroTheTerror によるリンク Getting a user from their t2_ id

[–]bsimpson 0ポイント1ポイント  (0子コメント)

OK, the target user name has been added to json modaction listings as "target_author".

redditdev 内の TeroTheTerror によるリンク Getting a user from their t2_ id

[–]bsimpson 1ポイント2ポイント  (0子コメント)

Yeah, that should be added. I'll look into it.

redditdev 内の Hook3d によるリンク Suggestions for grammar bot?

[–]bsimpson 2ポイント3ポイント  (0子コメント)

Are you going to run this on the site, or are you just building it for your own sake? Bots like this are really annoying.

bugs 内の MeGustaTortugas によるリンク Issue with Flair on Subreddits

[–]bsimpson 4ポイント5ポイント  (0子コメント)

I'm pretty sure this is caused by how we cache the html for comments. The comment author's flair isn't part of the cache key so if the flair changes we will continue to show the old flair if the comment is available in cache.

It's on my list of things to fix.

redditdev 内の kpskps によるリンク Using reddit code to make a new reddit type forum

[–]bsimpson 0ポイント1ポイント  (0子コメント)

You could modify the reddit code to disable subreddit creation.

bugs 内の davidreiss666 によるリンク Error when submitting sometimes

[–]bsimpson 1ポイント2ポイント  (0子コメント)

Are you initially trying to submit to /r/betternews?