Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tootctl media lookup command #12283

Merged
merged 19 commits into from
Nov 4, 2019
Prev Previous commit
Next Next commit
Fix styling issues
  • Loading branch information
Nathaniel Suchy committed Nov 2, 2019
commit 2d8e0545bd5cb04804e21aac92216c9db0e9ca5f
4 changes: 2 additions & 2 deletions lib/mastodon/media_cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ def lookup
end
.join('')

if attachment = MediaAttachment.find(id)
if (attachment = MediaAttachment.find(id))
prompt.say("The source toot URL is https://#{ENV['LOCAL_DOMAIN']}/web/statuses/#{attachment.status_id}")
else
prompt.say('The corresponding media object you referenced could not be found, perhaps the toot was deleted?')
end
end
end
end
end