Skip to content

Commit

Permalink
Add old reddit link
Browse files Browse the repository at this point in the history
  • Loading branch information
fmterrorf committed Aug 2, 2023
1 parent b066be2 commit 268ea37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/funbunn/discord_body.ex
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ defmodule Funbunn.DiscordBody do
defp add_old_link(embed, item) do
Map.update(embed, :fields, [], fn fields ->
[
%{name: "old 🔗", value: "https://old.reddit.com" <> item.permalink, inline: false} | fields
%{name: "🔗 old.reddit.com", value: "[Link](https://old.reddit.com#{item.permalink})", inline: false} | fields
]
end)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/funbunn/subreddit_worker.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defmodule Funbunn.SubredditWorker do
def init(subreddit) do
Logger.info("Starting #{__MODULE__} for #{subreddit}")
send(self(), :poll)
{:ok, {subreddit, DateTime.utc_now()}}
{:ok, {subreddit, DateTime.utc_now() |> DateTime.add(-60 * 5, :minute)}}
end

@impl true
Expand Down

0 comments on commit 268ea37

Please sign in to comment.