Max Goodman
c565694c99
Restrict access to private subreddit data via the API.
...
Thanks to a report by Jordan Milne.
2013-08-22 14:35:36 -07:00
Max Goodman
b1dc272847
Force logged out state for .wired/.js/.embed.
...
Thanks to Jordan Milne for pointing out this oversight.
2013-08-22 14:35:36 -07:00
Neil Williams
fac84e86c3
/api/delete_sr_image: Ensure valid name submitted.
...
Previously, if an invalid image name were passed to this endpoint, it
would fail because VCssName would return an empty string and we'd never
check for the validity of the value.
Fixes reddit/reddit#883 .
2013-08-21 16:44:31 -07:00
Neil Williams
8d4ba3971b
Stop writing subreddit images to old model.
2013-08-21 14:23:51 -07:00
Chad Birch
77c658b6ce
API: Change "type" to "subreddit_type"
2013-08-21 15:21:53 -06:00
Neil Williams
903acd7e21
Cut subreddit stylesheet image reads over to new model.
2013-08-21 11:05:39 -07:00
Chad Birch
cc5d31630c
API: Add more subreddit attributes
...
Adds comment_score_hide_mins, public_traffic, submission_type,
submit_link_label, submit_text_label, type, user_is_banned,
user_is_contributor, user_is_moderator, user_is_subscriber
2013-08-21 11:57:57 -06:00
Chad Birch
a7aa31d16d
jsontemplates.py: data_attrs cleanup
...
Switched to better multi-line format/indentation, fixed whitespace,
added trailing commas, and alphabetized all attr lists.
2013-08-21 11:57:57 -06:00
Chad Birch
2c6d347b80
Link hiding: don't hide own posts due to low score
...
Also refactored logic of this section to be a lot simpler.
2013-08-21 11:57:57 -06:00
Chad Birch
bd9aa09402
Approval checkmarks: initialize approval_time
2013-08-21 11:57:57 -06:00
Chad Birch
8fe9623329
Domain media info: ensure media_object is a dict
2013-08-21 11:57:57 -06:00
Roger Ostrander
5f6ba13aaf
Subreddit options: Include more fine-grained spam controls
2013-08-20 17:53:07 -07:00
Brian Simpson
0b7bc86ea4
Selftext promoted links need full url for click redirect.
2013-08-20 13:26:02 -04:00
Neil Williams
4303841341
Add ImagesByWikiPage model and start dual-writing.
...
This model will initially be used to transfer subreddit images (used in
the stylesheet) off to a new system, but is intended to be used for
per-wikipage images in the future as well.
2013-08-19 16:11:50 -07:00
Ricky Ramirez
052c661f28
Add employees to example.ini
2013-08-16 16:15:31 -07:00
Neil Williams
47cab1313e
Make CommentButtons's show_distinguish respect employee flag.
2013-08-16 11:15:50 -07:00
Chad Birch
fb8818e9d2
Flair toggle: Add a <label> tag
2013-08-15 16:59:50 -06:00
Neil Williams
acfa8a232f
r.utils.pyStrFormat: Replace more than one format parameter.
2013-08-15 16:59:50 -06:00
Chad Birch
7e6cbc47b7
Domain area: add new user pref to show extra info
...
If enabled, shows additional info in the domain text when it's
available. Initially, this includes the source subreddit for internal
reddit links, and anywhere that the media_author_url or
media_author_name info is available through embed.ly (such as YouTube
channels, Twitter authors, etc.)
2013-08-15 16:59:43 -06:00
Chad Birch
182953e007
UrlParser: support subdomains in get_subreddit
2013-08-15 16:59:22 -06:00
Andre D
983be398d2
preview: Preview stickied link.
2013-08-12 14:11:37 -07:00
Andre D
d2a3074ee8
preview: Do not sticky previewed links.
2013-08-12 14:11:37 -07:00
Chad Birch
b650561890
API doc: Add set_subreddit_sticky/set_contest_mode
2013-08-12 14:11:37 -07:00
Ricky Ramirez
dd925f4a04
account: Protect employees against logged out users.
...
UnloggedUser raises a NotImplementedError for name.
2013-08-09 12:39:55 -07:00
Ricky Ramirez
641c21f4cb
Allow employees to see sitewide traffic pages.
2013-08-09 11:18:16 -07:00
Ricky Ramirez
0fabf570d1
Allow employees to gift gold for free.
2013-08-09 11:18:16 -07:00
Ricky Ramirez
ad2d41f7e7
Allow all employees to distinguish as admin.
2013-08-09 11:18:16 -07:00
Ricky Ramirez
75da61704b
account: Add employee property.
2013-08-09 11:18:15 -07:00
Tristanx
5312dc36f2
Fix error fields in flairlistrow template
2013-08-08 16:14:44 -07:00
Tristanx
5147a11276
Also preview linkflair in flairselector
2013-08-08 16:14:32 -07:00
Chad Birch
d00dc8d3a8
Tikkit terms: automatically show if linked to
2013-08-08 16:14:24 -07:00
John Drinkwater
0a88e50773
Fix the detection of meta name=og:image thumbnails
2013-08-08 14:53:34 -07:00
Andre D
3bc028c712
wiki: Add formatting help to edit page.
2013-08-08 13:35:13 -07:00
Andre D
57c573903f
formattinghelp: Move markdown help into a function.
2013-08-08 13:35:13 -07:00
Andre D
8e40ee3430
subreddit: Move _base into a property. Fixes _base properties not updating until after app restart.
2013-08-08 13:35:12 -07:00
Andre D
9229758976
multis: Correct GET_my_multis doc url.
2013-08-08 13:35:12 -07:00
Andre D
7e178899fa
multis: Correct api_doc order.
2013-08-08 13:35:12 -07:00
Andre D
2a5bd5cff9
wiki: Add throbber on edit.
2013-08-08 13:35:12 -07:00
Andre D
86eedb9043
wiki: Disable save button during wiki page edit saving.
2013-08-08 13:35:12 -07:00
Chad Birch
850a07c8cc
Stickies: set with a button on comments page
...
This replaces the need to enter the sticky's permalink on the subreddit
settings page, and adds a new button for stickying/unstickying next to
the contest mode button.
2013-08-07 15:47:37 -06:00
Andre D
e0889c4ea7
wiki: Replace "/" in body class with "-".
2013-08-07 15:47:36 -06:00
Ricky Ramirez
3735a63f24
Allow ratelimited user agents to have individual limits.
2013-08-07 12:14:11 -07:00
Neil Williams
d663066c03
Add full gettext support to the frontend.
...
This replaces r.strings with a new i18n system based on Jed. Messages
are extracted from the JS source directly. Plurals are supported as
well.
The string formatting built into r.strings is now moved onto
String.prototype.
2013-08-07 10:56:34 -07:00
Neil Williams
f1534b52d9
locate_static_file: Reverse search order.
...
This makes plugin static files more consistent with other parts of the
plugin system where the ordering of g.plugins is meaningful.
2013-08-07 10:56:34 -07:00
Chad Birch
4aa1f713f6
Gold messages: update wordings
2013-08-07 10:56:14 -07:00
Chad Birch
d7759c9dce
Subreddit settings API: add sticky_permalink
2013-08-07 10:56:14 -07:00
Chad Birch
689a4d8c32
hot list: show full page of posts even with sticky
2013-08-07 10:56:14 -07:00
Brian Simpson
0c490e4ecf
Use AdminLinkMenu on LinkInfoPage.
2013-08-05 12:18:52 -06:00
Chad Birch
9fa7e0b515
Subreddit settings: add ability to define a sticky
...
This allows subreddits to define a single self-post from inside the same
subreddit, which will be "stuck" to the top of the subreddit's hot page,
with distinct styling. Outside of viewing the subreddit's hot page
individually, the post will behave as normal. It also can only be hidden
by the user manually, and will not automatically hide due to being below
their score threshold, or being upvoted/downvoted with one of the user
preferences that normally hides posts they vote on.
2013-08-05 12:16:01 -06:00
Andre D
5cdd6f7530
about/moderators.json: Include permissions.
2013-08-05 12:15:55 -06:00