Since it seems no one else this problem, or there is no good solution
for this problem I'll just post what I'm using right now.
I only allow the call to atom_get_collection in get_collection in
atomhandler.php if the request is not authenticated. Since I'm the
only user that uses authenticated feeds it works for me, but it's a
quite dirty hack and I'd be really happy if anyone had a better
solution to this problem.
Alex
--- atomhandler.php (revision 4299)
+++ atomhandler.php (working copy)
@@ -773,7 +773,10 @@
$xml = $this->add_posts($xml, $posts );
- Plugins::act( 'atom_get_collection', $xml, $params,
$handler_vars );
+ if ( !$this->is_auth() ) {
+ Plugins::act( 'atom_get_collection', $xml, $params,
$handler_vars );
+ }
+
$xml = $xml->asXML();
ob_clean();
On 31 Aug., 19:18, Alexander <[email protected]> wrote:
> I'm using the habarimarkdown module and write my posts in an external
> editor.
>
> Everything works nice and If I edit online I've still got my raw
> Markdown content - just like expected.
> But if I want to edit a post in the external editor Habari sends me
> the converted HTML and not the raw Markdown code I really expect and
> want.
>
> Is there a way to turn off the filter for the AtomPub, while keeping
> it on for the normal Atom feed?
>
> I had this problem with every text filter I tried and I can't imagine
> that this behaviour is intended.
>
> Alex
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/habari-users