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 Camo support #5386

Merged
merged 14 commits into from Nov 9, 2014
Merged

Add Camo support #5386

merged 14 commits into from Nov 9, 2014

Conversation

denschub
Copy link
Member

@denschub denschub commented Nov 9, 2014

This pull requests adds optional support for Camo. Camo is a small application to proxy insecure assets over secure channels (mainly markdown images). For more information, check out the wiki page.

The code might need some optimization, please review. Also I'm shamelessly using Travis to ensure my changes have no bad side effects, thus creating this PR. ;)

@jhass
Copy link
Member

jhass commented Nov 9, 2014

@jhass
Copy link
Member

jhass commented Nov 9, 2014

Please don't call methods with :: :)

@jhass
Copy link
Member

jhass commented Nov 9, 2014

I don't quite follow why you added the processing to both, the getter methods and the message renderer. Are there still places where we hand out the content to the frontend through the getter methods instead of the message renderer?

The issue I see is that the getters are used when serializing the object for federation (https://github.com/diaspora/diaspora/blob/develop/app/models/comment.rb#L19).

@jhass jhass added this to the next-major milestone Nov 9, 2014
#proxy_remote_pod_images: true

## Root of your Camo installation
#root: "https://camo.example.com/"
Copy link
Member

Choose a reason for hiding this comment

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

Total nitpick but I think the example should be https://example.com/camo/ since that's our recommended setup ;)

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed. Changed. ;)

... and a stealth-commit of an already introduced bug prevention system.
;)
@denschub
Copy link
Member Author

denschub commented Nov 9, 2014

Are there still places where we hand out the content to the frontend through the getter methods instead of the message renderer?

Yeah, we had those. Anyways, I fixed the presenters and removed the getters to prevent federation issues. Thanks for the heads up!

@jhass
Copy link
Member

jhass commented Nov 9, 2014

Alright, let's try this. Thank you!

jhass added a commit that referenced this pull request Nov 9, 2014
@jhass jhass merged commit a3a8a22 into diaspora:develop Nov 9, 2014
@denschub denschub deleted the camo branch November 9, 2014 20:44
@jhass jhass mentioned this pull request Apr 26, 2015
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.

None yet

2 participants