MCPcopy
hub / github.com/isso-comments/isso / activate

Method activate

isso/db/comments.py:142–146  ·  view source on GitHub ↗

Activate comment id if pending.

(self, id)

Source from the content-addressed store, hash-verified

140 )
141
142 def activate(self, id):
143 """
144 Activate comment id if pending.
145 """
146 self.db.execute(["UPDATE comments SET", " mode=1", "WHERE id=? AND mode=2"], (id,))
147
148 def is_previously_approved_author(self, email):
149 """

Callers 3

moderateMethod · 0.80
testAddCommentMethod · 0.80
testPurgeDoesNoHarmMethod · 0.80

Calls 1

executeMethod · 0.80

Tested by 2

testAddCommentMethod · 0.64
testPurgeDoesNoHarmMethod · 0.64