[openstreetmap/openstreetmap-website] Add UserMute to control private message visibility (PR #4284)
Tom Hughes
notifications at github.com
Mon Oct 23 10:43:05 UTC 2023
@tomhughes commented on this pull request.
> @@ -127,6 +134,23 @@ def mark
render :action => "no_such_message", :status => :not_found
end
+ # Moves message into Inbox by unsetting the muted-flag
+ def unmute
+ message = Message.where(:recipient => current_user).find(params[:message_id])
> this is just the query for the `message`-record. 2 lines below `message.unmute` is called.
Oh I missed that... In that case the question becomes why wasn't it working for me because the reason I stared looking closely at that code was that the unmute didn't seem to work.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4284#discussion_r1368470426
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4284/review/1692231857 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231023/44b15849/attachment.htm>
More information about the rails-dev
mailing list