Skip to content

Commit 9b01047

Browse files
Add userID to app report
1 parent ff75946 commit 9b01047

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

appstore/dev_portal_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def add_flag(app_id):
159159
flag = UserFlag(user_id=uid, app_id=app_id)
160160
db.session.add(flag)
161161
db.session.commit()
162-
report_app_flag(app.title, app.developer.name, app_id, app.app_uuid)
162+
report_app_flag(uid, app.title, app.developer.name, app_id, app.app_uuid)
163163
except NoResultFound:
164164
abort(404)
165165
return

appstore/discord.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def audit_log(operation, affected_app_uuid = None):
127127

128128
send_admin_discord_webhook(request_data)
129129

130-
def report_app_flag(app_name, developer_name, app_id, affected_app_uuid = None):
130+
def report_app_flag(reported_by, app_name, developer_name, app_id, affected_app_uuid = None):
131131

132132
if affected_app_uuid is not None:
133133
if config["TEST_APP_UUID"] is not None and config["TEST_APP_UUID"] == str(affected_app_uuid):
@@ -140,6 +140,10 @@ def report_app_flag(app_name, developer_name, app_id, affected_app_uuid = None):
140140
{
141141
"name": "Developer",
142142
"value": developer_name
143+
},
144+
{
145+
"name": "Reported By",
146+
"value": "User #" + str(reported_by)
143147
}
144148
]
145149

0 commit comments

Comments
 (0)