Skip to content

Commit

Permalink
fix(models/post): remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
unenglishable committed Sep 10, 2024
1 parent f402c55 commit 029c76d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/epochtalk_server/models/post.ex
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,6 @@ defmodule EpochtalkServer.Models.Post do

# update updated_at field if outside of 10 min grace period,
# or if a moderator is editing a user's post
now = now

attrs =
if (attrs.metadata != nil && Map.keys(attrs.metadata) != []) || outside_edit_window,
do: Map.put(attrs, :updated_at, now),
Expand Down

0 comments on commit 029c76d

Please sign in to comment.