Skip to content

Commit

Permalink
Include employer name, skip A/B headline dupes
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Dec 2, 2024
1 parent fbaf714 commit ee2f142
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions hasjob/views/listing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1064,26 +1064,12 @@ def confirm_email(domain, hashid, key):
username=post.twitter,
)
if app.config['BLUESKY_ENABLED']:
if post.headlineb:
bluesky_post.queue(
post.headline,
post.url_for(b=0, _external=True),
post.location,
dict(post.parsed_location or {}),
)
bluesky_post.queue(
post.headlineb,
post.url_for(b=1, _external=True),
post.location,
dict(post.parsed_location or {}),
)
else:
bluesky_post.queue(
post.headline,
post.url_for(_external=True),
post.location,
dict(post.parsed_location or {}),
)
bluesky_post.queue(
f'{post.headline}{post.company_name}',
post.url_for(_external=True),
post.location,
dict(post.parsed_location or {}),
)
add_to_boards.queue(post.id)
flash(
"Congratulations! Your job post has been published. As a bonus for being an employer on Hasjob, "
Expand Down

0 comments on commit ee2f142

Please sign in to comment.