feat: allow users to use the app icon as the answer icon (#7888)

Co-authored-by: crazywoola <427733928@qq.com>
This commit is contained in:
kurokobo 2024-09-02 21:00:41 +09:00 • committed by GitHub
commit 80aa7c4019
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 208 additions and 8 deletions

View file

@ -221,6 +221,7 @@ class AppService:
app.icon_type = args.get("icon_type", "emoji")
app.icon = args.get("icon")
app.icon_background = args.get("icon_background")
app.use_icon_as_answer_icon = args.get("use_icon_as_answer_icon", False)
app.updated_by = current_user.id
app.updated_at = datetime.now(timezone.utc).replace(tzinfo=None)
db.session.commit()