friendica/friendica — pull request #45 by annando (2012-02-22 19:32:31+00:00)
Title: New HTML to BBCode converter, changes to BBCode, nginx support, ...

Hi!

This pull request contains the following issues:

- The README is only useful on my own fork. Please ignore :)
- boot.php: I had problems with the API. The origin was a leading slash. I guess that is a nginx problem. This is a fix for that.
- api.php: Mainly I added a preset for the type so that the error message "not implemented" can be returned. The rest is only deletion of some useless spaces.
- bb2diaspora.php: The changed lines ensure that diaspora posts are now looking (mostly) like they look on diaspora systems. The "file_put_contents" is for testing purposes only so that I can repeat tests of posts that wasn't converted correctly.
- bbcode.php: I added a fix for the problem of nested lists and quotes. When a quote was inside a quote then it wasn't converted. Same happened with lists.
- html2bbcode.php: This is complete new code. It was used for another project and is stable. It is based upon the DOM XML functions and is very powerful. It is good (and tested) at importing RSS feeds and mails. Importing html mails is something I'm planning to code in the future.
- poller.php: Please ignore these changes. They are for testing purposes only.
- markdown.php: This is simply a new version of the markdown interpreter.
- Template files: I changed the german translation so that male *and* female persons are addressed.
- Last but not least there is a newer version of my "vier" theme.