You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If for some reason the thread_ts is not set for a given puzzle, posting a solution returns an error 500 (although the solution is correctly posted).
if@snippet.savepost_slack_message
...
defpost_slack_messageclient=Slack::Web::Client.newpuzzle=Puzzle.by_date(Aoc.begin_time.change(day: params[:day]))username="<#{helpers.profile_url(current_user.uid)}|#{current_user.username}>"solution="<#{helpers.snippet_url(day: @snippet.day,challenge: @snippet.challenge,anchor: @snippet.id)}|solution>"text="#{username} submitted a new #{solution} for part #{params[:challenge]} in :#{@snippet.language}-hd:"client.chat_postMessage(channel: ENV.fetch("SLACK_CHANNEL","#aoc-dev"),text:,thread_ts: puzzle.thread_ts)# <<<<< HEREend
⚠️ If the thread_ts is set to nil (like puzzle&.thread_ts), then the message is posted in the channel directly 😬
The text was updated successfully, but these errors were encountered:
Likelyhood: low.
If for some reason the
thread_ts
is not set for a given puzzle, posting a solution returns an error 500 (although the solution is correctly posted).thread_ts
is set tonil
(likepuzzle&.thread_ts
), then the message is posted in the channel directly 😬The text was updated successfully, but these errors were encountered: