mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
PromotedLinkJsonTemplate: add all needed attributes.
This commit is contained in:
@@ -584,8 +584,13 @@ class LinkJsonTemplate(ThingJsonTemplate):
|
||||
class PromotedLinkJsonTemplate(LinkJsonTemplate):
|
||||
_data_attrs_ = LinkJsonTemplate.data_attrs(
|
||||
promoted="promoted",
|
||||
imp_pixel="imp_pixel",
|
||||
adserver_imp_pixel="adserver_imp_pixel",
|
||||
adserver_click_url="adserver_click_url",
|
||||
)
|
||||
del _data_attrs_['author']
|
||||
del _data_attrs_['subreddit']
|
||||
del _data_attrs_['subreddit_id']
|
||||
|
||||
|
||||
class CommentJsonTemplate(ThingJsonTemplate):
|
||||
_data_attrs_ = ThingJsonTemplate.data_attrs(
|
||||
|
||||
Reference in New Issue
Block a user