mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 15:28:37 -05:00
Stop writing to old promotion_log attribute.
This commit is contained in:
@@ -1012,12 +1012,6 @@ class PromotionLog(tdb_cassandra.View):
|
||||
rowkey = cls._rowkey(link)
|
||||
column = {uuid1(): filters._force_utf8(text)}
|
||||
cls._set_values(rowkey, column)
|
||||
|
||||
# Dual write to old promotion_log attribute
|
||||
log = list(getattr(link, "promotion_log", []))
|
||||
log.append(text)
|
||||
link.promotion_log = map(filters._force_utf8, log)
|
||||
link._commit()
|
||||
return text
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user