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

support for bridgy_omit_link=maybe #659

Merged
merged 3 commits into from
Apr 25, 2016
Merged

Conversation

kylewm
Copy link
Contributor

@kylewm kylewm commented Apr 24, 2016

interpret bridgy_omit_link=maybe as "include link iff the content is
shortened".

(my 2-line-fix ended up being more like 300 lines across 11 files ... nice estimation abilities, me)

fixes #561

@kylewm
Copy link
Contributor Author

kylewm commented Apr 24, 2016

Not quite ready yet...

@kylewm
Copy link
Contributor Author

kylewm commented Apr 24, 2016

OK now I'm done, and it's live on https://bridgy-kwm.appspot.com/

(CI checks are failing because this depends on snarfed/granary#86)

</label>
<label>
<input id="omit-link-maybe" name="bridgy_omit_link" value="maybe" type="radio">
if shortened
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor, consider an alt tooltip with a more detailed explanation?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! Also reminded me I meant to add it to the docs too.

@snarfed
Copy link
Owner

snarfed commented Apr 24, 2016

lgtm yay! especially if you've tested manually that interactive still works w/o js as well as with. :P thanks again!

@kylewm kylewm force-pushed the omit-maybe branch 2 times, most recently from dfc0a5a to 80a0d46 Compare April 25, 2016 01:33
@kylewm
Copy link
Contributor Author

kylewm commented Apr 25, 2016

🎵 well I just met you
and this is crazy
but here's my number
bridgy_omit_link=maybe 🎵

@kylewm kylewm merged commit 347d6f7 into snarfed:master Apr 25, 2016
@kylewm kylewm deleted the omit-maybe branch April 25, 2016 01:39
@kylewm
Copy link
Contributor Author

kylewm commented Apr 25, 2016

@snarfed it acts weird with the cached bridgy.js -- do you do any kind of ?version=2016-04-24 thing to bust it?

@snarfed
Copy link
Owner

snarfed commented Apr 25, 2016

sadly no, but its expiration is only 1h.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

publish: option to include a link only when content > 140 chars
2 participants