mirror of
https://git.kiwifarms.net/mint/fedi-block-api.git
synced 2024-10-22 23:39:05 +00:00
Prevent creating duplicate entried for Friendica blocks
This commit is contained in:
parent
c29326745b
commit
441d050305
1 changed files with 2 additions and 2 deletions
|
@ -418,8 +418,8 @@ for blocker, software in c.fetchall():
|
|||
|
||||
timestamp = int(time())
|
||||
c.execute(
|
||||
"select * from blocks where blocker = ? and blocked = ? and reason = ?",
|
||||
(blocker, blocked, reason),
|
||||
"select * from blocks where blocker = ? and blocked = ?",
|
||||
(blocker, blocked),
|
||||
)
|
||||
if c.fetchone() == None:
|
||||
c.execute(
|
||||
|
|
Loading…
Reference in a new issue