Skip to content

Commit

Permalink
Merge pull request #150 from loftwah/dl/user-fix-15-09
Browse files Browse the repository at this point in the history
fix users
  • Loading branch information
loftwah authored Sep 14, 2024
2 parents 732125b + f86e546 commit 5b544b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# app/models/user.rb
class User < ApplicationRecord

FALLBACK_AVATAR_URL = 'https://pbs.twimg.com/profile_images/1581014308397502464/NPogKMyk_400x400.jpg'
Expand Down
4 changes: 3 additions & 1 deletion app/services/open_graph_image_generator.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
class OpenGraphImageGenerator
# Constants for sizes and paths
FALLBACK_AVATAR_URL = 'https://pbs.twimg.com/profile_images/1581014308397502464/NPogKMyk_400x400.jpg'
AVATAR_SIZE = 400
BORDER_SIZE = 5

def initialize(user)
@user = user
Expand Down Expand Up @@ -72,4 +74,4 @@ def download_image(url)
tempfile.unlink # Unlink after we've processed the image
end
end
end
end

0 comments on commit 5b544b3

Please sign in to comment.